package com.example.demo.mapper;

import com.example.demo.entity.Flow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: WinstonDeng
 * @Description:
 * @Date: Created in 9:30 2020/4/8
 * @Modified by:
 */
public interface FlowMapper {
    Flow findById(Long id);
    Boolean updateFlow(Flow flow);

    Boolean insertFlow(Flow flow);

    List<Flow> findByDoctorIdAndState(@Param("doctorId") long doctorId,@Param("state") int state);

    List<Flow> findByPatientIdAndState(@Param("patientId")long patientId,@Param("state") int state);
}
